package com.iwhalecloud.citybrain.flow.platform.manager.domain.repository;

import java.util.List;

import com.fasterxml.jackson.databind.JsonNode;
import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.FlowReNodeAuthVo;

/**
 * @author tianjianlin
 * @date 2019-07-11 16:27
 */
public interface FlowReNodeAuthRepository {

    /**
     * 保存权限设置
     *
     * @param deployId
     * @param nodeCode
     * @param nodeAuth
     * @return
     */
    Integer saveNodeAuth(String deployId, String nodeCode, JsonNode nodeAuth);

    /**
     * 依据流程定义ID以及流程编码查询流程的节点控制权限列表
     *
     * @param procdefId
     * @param processCode
     * @return
     */
    List<FlowReNodeAuthVo> listNodeAuthByProcdefIdAndNodeCode(String procdefId, String processCode);
}
